package com.nervenets.web.enumeration;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nervenets.i18n.Translator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ApiModel("审核状态：checking审核中, success审核成功, failed审核失败")
public enum CheckStatus {
    checking, success, failed;


    @ApiModelProperty("值")
    public String getValue() {
        return this.name();
    }

    @ApiModelProperty("显示文本")
    public String getText() {
        return Translator.translate(this);
    }
}
